<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改')"/>
</head>
<body>
<form class="layui-form" action=""  th:object="${ApplyAlter}">
    <div class="mainBox">
        <div class="main-container">
            <div class="main-container">
		
						<div class="layui-form-item layui-hide">
		                    <label class="layui-form-label">id</label>
		                    <div class="layui-input-block">
		                        <input type="text" th:value="*{id}" name="id" lay-verify="title"
		                               autocomplete="off" class="layui-input">
		                    </div>
		                </div>
						
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">审核状态</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{state}" type="text" name="state" autocomplete="off" placeholder="审核状态" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">项目类型</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{proType}" type="text" name="proType" autocomplete="off" placeholder="项目类型" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">项目名称</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{proName}" type="text" name="proName" autocomplete="off" placeholder="项目名称" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">批准号</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{proNum}" type="text" name="proNum" autocomplete="off" placeholder="批准号" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">项目负责人名称</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{manName}" type="text" name="manName" autocomplete="off" placeholder="项目负责人名称" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">（原）工作单位</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{manIns}" type="text" name="manIns" autocomplete="off" placeholder="（原）工作单位" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">研究类型</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{proRearchType}" type="text" name="proRearchType" autocomplete="off" placeholder="研究类型" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">立项时的计划
完成时间</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{proPlanTime}" type="text" name="proPlanTime" autocomplete="off" placeholder="立项时的计划
完成时间" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">（原）成果形式</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{proResType}" type="text" name="proResType" autocomplete="off" placeholder="（原）成果形式" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">联系电话</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{manPhone}" type="text" name="manPhone" autocomplete="off" placeholder="联系电话" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">延期日期</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{postponeDate}" type="text" name="postponeDate" autocomplete="off" placeholder="延期日期" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">变更项目负责人</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{postponeMan}" type="text" name="postponeMan" autocomplete="off" placeholder="变更项目负责人" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">变更项目管理单位</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{postponeProIns}" type="text" name="postponeProIns" autocomplete="off" placeholder="变更项目管理单位" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">改变成果形式</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{postponeProType}" type="text" name="postponeProType" autocomplete="off" placeholder="改变成果形式" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">改变项目名称</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{postponeProName}" type="text" name="postponeProName" autocomplete="off" placeholder="改变项目名称" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">研究内容有重大调整</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{postponeProCont}" type="text" name="postponeProCont" autocomplete="off" placeholder="研究内容有重大调整" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">自行中止项目</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{postponeProStop}" type="text" name="postponeProStop" autocomplete="off" placeholder="自行中止项目" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">撤项</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{postponeCancel}" type="text" name="postponeCancel" autocomplete="off" placeholder="撤项" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">调整经费预算</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{postponeMoney}" type="text" name="postponeMoney" autocomplete="off" placeholder="调整经费预算" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">其他（选项）</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{postponeOther}" type="text" name="postponeOther" autocomplete="off" placeholder="其他（选项）" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">其他（内容）</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{postponeOtherCont}" type="text" name="postponeOtherCont" autocomplete="off" placeholder="其他（内容）" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">变更事由</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{postponeReason}" type="text" name="postponeReason" autocomplete="off" placeholder="变更事由" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">所在单位审核意见</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{adviceDanwei}" type="text" name="adviceDanwei" autocomplete="off" placeholder="所在单位审核意见" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">省社科规划办</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{adviceSkl}" type="text" name="adviceSkl" autocomplete="off" placeholder="省社科规划办" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">全国社科审核人意见</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{adviceNationMan}" type="text" name="adviceNationMan" autocomplete="off" placeholder="全国社科审核人意见" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">全国社科主管意见</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{adviceNationManager}" type="text" name="adviceNationManager" autocomplete="off" placeholder="全国社科主管意见" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">全国社科主管领导意见</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{adviceNationLeader}" type="text" name="adviceNationLeader" autocomplete="off" placeholder="全国社科主管领导意见" class="layui-input">
		                    </div>
		                </div>
					                
											
										
						<div class="layui-form-item">
		                    <label class="layui-form-label">项目立项回执url</label>
		                    <div class="layui-input-block">
		                        <input th:value="*{proApplyDoc}" type="text" name="proApplyDoc" autocomplete="off" placeholder="项目立项回执url" class="layui-input">
		                    </div>
		                </div>
					                
							
            </div>
        </div>
    </div>
    <div class="bottom">
        <div class="button-container">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit=""
                    lay-filter="applyAlter-update">
                <i class="layui-icon layui-icon-ok"></i>
				提交
            </button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">
                <i class="layui-icon layui-icon-refresh"></i>
				重置
            </button>
        </div>
    </div>
</form>
<th:block th:include="include :: footer"/>
<script>
    layui.use(['form','laydate','jquery'], function () {
        let form = layui.form;
        let $ = layui.jquery;
        let MODULE_PATH = rootPath+"/ApplyAlterController";
		

        form.on('submit(applyAlter-update)', function (data) {
        	let loader = layer.load();



            $.ajax({
                url: MODULE_PATH+'/edit',
                data: data.field,
                dataType: 'json',
                contentType: 'application/x-www-form-urlencoded',
                type: 'post',
                success: function (result) {
                    if (result.code==200) {
                        layer.msg(result.msg, {icon: 1, time: 1000}, function () {
                            parent.layer.close(parent.layer.getFrameIndex(window.name));//关闭当前页
                            parent.layui.table.reload("applyAlter-table");
                            layer.close(loader);
                        });
                    } else {
                        layer.msg(result.msg, {icon: 2, time: 1000});
                        layer.close(loader);
                    }
                }
            })
            return false;
        });
    })
</script>
</body>
</html>